<?php

use think\Route;

//
Route::rule('/index/test','index/index/index');



//用户信息部分
//
Route::resource(':version/controller/userInfo/UserInfo','api/:version.controller.userInfo.UserInfo');
// 显示个人信息
Route::post(':version/controller/userInfo/UserInfo/show_userinfo','version.controller.userInfo.UserInfo/show_userinfo');
Route::rule(':version/controller/userInfo/UserInfo/show_userinfo','api/:version.controller.userInfo.UserInfo/show_userinfo');

//编辑个人信息
Route::post(':version/controller/userInfo/UserInfo/edit_user_info','version.controller.userInfo.UserInfo/edit_user_info');
Route::rule(':version/controller/userInfo/UserInfo/edit_user_info','api/:version.controller.userInfo.UserInfo/edit_user_info');

//上传头像
Route::post(':version/controller/userInfo/UserInfo/change_user_icon','version.controller.userInfo.UserInfo/change_user_icon');
Route::rule(':version/controller/userInfo/UserInfo/change_user_icon','api/:version.controller.userInfo.UserInfo/change_user_icon');

//上传用户资料
Route::post(':version/controller/userInfo/UserInfo/userInfo_upload','version.controller.userInfo.UserInfo/userInfo_upload');
Route::rule(':version/controller/userInfo/UserInfo/userInfo_upload','api/:version.controller.userInfo.UserInfo/userInfo_upload');

//判断用户类型
Route::post(':version/controller/userInfo/UserInfo/judgement_user_type','version.controller.userInfo.UserInfo/judgement_user_type');
Route::rule(':version/controller/userInfo/UserInfo/judgement_user_type','api/:version.controller.userInfo.UserInfo/judgement_user_type');

//修改用户背景图片
Route::post(':version/controller/userInfo/UserInfo/change_background_img','version.controller.userInfo.UserInfo/change_background_img');
Route::rule(':version/controller/userInfo/UserInfo/change_background_img','api/:version.controller.userInfo.UserInfo/change_background_img');

//显示被关注的人(粉丝)
Route::post(':version/controller/userInfo/UserInfo/show_fans','version.controller.userInfo.UserInfo/show_fans');
Route::rule(':version/controller/userInfo/UserInfo/show_fans','api/:version.controller.userInfo.UserInfo/show_fans');

//用户关注的人
Route::post(':version/controller/userInfo/UserInfo/show_follows','version.controller.userInfo.UserInfo/show_follows');
Route::rule(':version/controller/userInfo/UserInfo/show_follows','api/:version.controller.userInfo.UserInfo/show_follows');

//修改密码
Route::post(':version/controller/userInfo/UserInfo/change_psw','version.controller.userInfo.UserInfo/change_psw');
Route::rule(':version/controller/userInfo/UserInfo/change_psw','api/:version.controller.userInfo.UserInfo/change_psw');

//修改用户资料
Route::post(':version/controller/userInfo/UserInfo/change_userinfo','version.controller.userInfo.UserInfo/change_userinfo');
Route::rule(':version/controller/userInfo/UserInfo/change_userinfo','api/:version.controller.userInfo.UserInfo/change_userinfo');



//个人动态部分
//
//个人动态的发表

Route::resource(':version/controller/dynamic/Dynamic','api/:version.controller.dynamic.Dynamic');

Route::post(':version/controller/dynamic/Dynamic/create_dynamic','version.controller.dynamic.Dynamic/create_dynamic');
Route::rule(':version/controller/dynamic/Dynamic/create_dynamic','api/:version.controller.dynamic.Dynamic/create_dynamic');

//个人动态,显示图片
Route::post(':version/controller/dynamic/Dynamic/show_dynamic_img','version.controller.dynamic.Dynamic/show_dynamic_img');
Route::rule(':version/controller/dynamic/Dynamic/show_dynamic_img','api/:version.controller.dynamic.Dynamic/show_dynamic_img');

//关注人的个人动态
Route::post(':version/controller/dynamic/Dynamic/follow_user_dynamic','version.controller.dynamic.Dynamic/follow_user_dynamic');
Route::rule(':version/controller/dynamic/Dynamic/follow_user_dynamic','api/:version.controller.dynamic.Dynamic/follow_user_dynamic');

//个人动态评论(一级)
Route::post(':version/controller/dynamic/Dynamic/dynamic_cmmt','version.controller.dynamic.Dynamic/dynamic_cmmt');
Route::rule(':version/controller/dynamic/Dynamic/dynamic_cmmt','api/:version.controller.dynamic.Dynamic/dynamic_cmmt');


//个人动态点赞
Route::post(':version/controller/dynamic/Dynamic/dynamic_upvote','version.controller.dynamic.Dynamic/dynamic_upvote');
Route::rule(':version/controller/dynamic/Dynamic/dynamic_upvote','api/:version.controller.dynamic.Dynamic/dynamic_upvote');

//显示个人动态评论
Route::post(':version/controller/dynamic/Dynamic/show_dynamic_cmmt','version.controller.dynamic.Dynamic/show_dynamic_cmmt');
Route::rule(':version/controller/dynamic/Dynamic/show_dynamic_cmmt','api/:version.controller.dynamic.Dynamic/show_dynamic_cmmt');

//个人动态的评论的点赞
Route::post(':version/controller/dynamic/Dynamic/dynamic_cmmt_upvote','version.controller.dynamic.Dynamic/dynamic_cmmt_upvote');
Route::rule(':version/controller/dynamic/Dynamic/dynamic_cmmt_upvote','api/:version.controller.dynamic.Dynamic/dynamic_cmmt_upvote');


//删除个人动态
Route::post(':version/controller/dynamic/Dynamic/delete_user_dynamic','version.controller.dynamic.Dynamic/delete_user_dynamic');
Route::rule(':version/controller/dynamic/Dynamic/delete_user_dynamic','api/:version.controller.dynamic.Dynamic/delete_user_dynamic');


//删除个人动态文章的评论
Route::post(':version/controller/dynamic/Dynamic/delete_dynamic_cmmt','version.controller.dynamic.Dynamic/delete_dynamic_cmmt');
Route::rule(':version/controller/dynamic/Dynamic/delete_dynamic_cmmt','api/:version.controller.dynamic.Dynamic/delete_dynamic_cmmt');

//关注和取消
Route::post(':version/controller/dynamic/Dynamic/user_follow','version.controller.dynamic.Dynamic/user_follow');
Route::rule(':version/controller/dynamic/Dynamic/user_follow','api/:version.controller.dynamic.Dynamic/user_follow');

//显示主页（自己和别人）
Route::post(':version/controller/dynamic/Dynamic/show_homepage','version.controller.dynamic.Dynamic/show_homepage');
Route::rule(':version/controller/dynamic/Dynamic/show_homepage','api/:version.controller.dynamic.Dynamic/show_homepage');

//显示用户个人动态show_user_dynamic
Route::post(':version/controller/dynamic/Dynamic/show_user_dynamic','version.controller.dynamic.Dynamic/show_user_dynamic');
Route::rule(':version/controller/dynamic/Dynamic/show_user_dynamic','api/:version.controller.dynamic.Dynamic/show_user_dynamic');

//新增显示用户个人动态页接口 show_user_dynamic_paging
Route::post(':version/controller/dynamic/Dynamic/show_user_dynamic_paging','api/:version.controller.dynamic.Dynamic/show_user_dynamic_paging');
Route::rule(':version/controller/dynamic/Dynamic/show_user_dynamic_paging','api/:version.controller.dynamic.Dynamic/show_user_dynamic_paging');





//随手拍部分
//返回随手拍主页
Route::post(':version/controller/snapshot/Snapshot/get_snapshot_img','version.controller.snapshot.Snapshot/get_snapshot_img');
Route::rule(':version/controller/snapshot/Snapshot/get_snapshot_img','api/:version.controller.snapshot.Snapshot/get_snapshot_img');

//发随手拍
Route::post(':version/controller/snapshot/Snapshot/snapshot_posts','version.controller.snapshot.Snapshot/snapshot_posts');
Route::rule(':version/controller/snapshot/Snapshot/snapshot_posts','api/:version.controller.snapshot.Snapshot/snapshot_posts');

//删除随手拍
Route::post(':version/controller/snapshot/Snapshot/delete_snapshot_post','version.controller.snapshot.Snapshot/delete_snapshot_post');
Route::rule(':version/controller/snapshot/Snapshot/delete_snapshot_post','api/:version.controller.snapshot.Snapshot/delete_snapshot_post');

//随手拍点赞
Route::post(':version/controller/snapshot/Snapshot/posts_upvote','version.controller.snapshot.Snapshot/posts_upvote');
Route::rule(':version/controller/snapshot/Snapshot/posts_upvote','api/:version.controller.snapshot.Snapshot/posts_upvote');

//随手拍评论
Route::post(':version/controller/snapshot/Snapshot/posts_cmmt','version.controller.snapshot.Snapshot/posts_cmmt');
Route::rule(':version/controller/snapshot/Snapshot/posts_cmmt','api/:version.controller.snapshot.Snapshot/posts_cmmt');

//删除随手拍评论
Route::post(':version/controller/snapshot/Snapshot/delete_snapshot_post_cmmt','version.controller.snapshot.Snapshot/delete_snapshot_post_cmmt');
Route::rule(':version/controller/snapshot/Snapshot/delete_snapshot_post_cmmt','api/:version.controller.snapshot.Snapshot/delete_snapshot_post_cmmt');

//随手拍评论点赞
Route::post(':version/controller/snapshot/Snapshot/cmmt_upvote','version.controller.snapshot.Snapshot/cmmt_upvote');
Route::rule(':version/controller/snapshot/Snapshot/cmmt_upvote','api/:version.controller.snapshot.Snapshot/cmmt_upvote');

//转发随手拍
Route::post(':version/controller/snapshot/Snapshot/posts_forward','version.controller.snapshot.Snapshot/posts_forward');
Route::rule(':version/controller/snapshot/Snapshot/posts_forward','api/:version.controller.snapshot.Snapshot/posts_forward');

//显示随手拍评论
Route::post(':version/controller/snapshot/Snapshot/show_post_cmmt','version.controller.snapshot.Snapshot/show_post_cmmt');
Route::rule(':version/controller/snapshot/Snapshot/show_post_cmmt','api/:version.controller.snapshot.Snapshot/show_post_cmmt');

//随手拍热点话题
Route::post(':version/controller/snapshot/Snapshot/get_hot_post','version.controller.snapshot.Snapshot/get_hot_post');
Route::rule(':version/controller/snapshot/Snapshot/get_hot_post','api/:version.controller.snapshot.Snapshot/get_hot_post');

//显示单个话题随手拍
Route::post(':version/controller/snapshot/Snapshot/show_snapshot_post','version.controller.snapshot.Snapshot/show_snapshot_post');
Route::rule(':version/controller/snapshot/Snapshot/show_snapshot_post','api/:version.controller.snapshot.Snapshot/show_snapshot_post');


//宠物部分
//1宠物信息

//上传宠物照片
Route::post(':version/controller/pet/PentInfo/upload_petImg','version.controller.pet.PetInfo/upload_petImg');
Route::rule(':version/controller/pet/PetInfo/upload_petImg','api/:version.controller.pet.PetInfo/upload_petImg');

//上传宠物信息
Route::post(':version/controller/pet/PentInfo/petinfo_upload','version.controller.pet.PetInfo/petinfo_upload');
Route::rule(':version/controller/pet/PetInfo/petinfo_upload','api/:version.controller.pet.PetInfo/petinfo_upload');

//判断宠物认证
Route::post(':version/controller/pet/PentInfo/permisstion_to_access','version.controller.pet.PetInfo/permisstion_to_access');
Route::rule(':version/controller/pet/PetInfo/permisstion_to_access','api/:version.controller.pet.PetInfo/permisstion_to_access');

//显示宠物信息
Route::post(':version/controller/pet/PentInfo/show_user_petinfo','version.controller.pet.PetInfo/show_user_petinfo');
Route::rule(':version/controller/pet/PetInfo/show_user_petinfo','api/:version.controller.pet.PetInfo/show_user_petinfo');

//更新宠物状态
Route::post(':version/controller/pet/PentInfo/update_pet_status','version.controller.pet.PetInfo/update_pet_status');
Route::rule(':version/controller/pet/PetInfo/update_pet_status','api/:version.controller.pet.PetInfo/update_pet_status');

//显示宠物信息
Route::post(':version/controller/pet/PentInfo/pet_manage','version.controller.pet.PetInfo/pet_manage');
Route::rule(':version/controller/pet/PetInfo/pet_manage','api/:version.controller.pet.PetInfo/pet_manage');

//添加宠物或者修改宠物资料
Route::post(':version/controller/pet/PentInfo/add_pet','version.controller.pet.PetInfo/add_pet');
Route::rule(':version/controller/pet/PetInfo/add_pet','api/:version.controller.pet.PetInfo/add_pet');

//删除宠物
Route::post(':version/controller/pet/PentInfo/delete_pet','version.controller.pet.PetInfo/delete_pet');
Route::rule(':version/controller/pet/PetInfo/delete_pet','api/:version.controller.pet.PetInfo/delete_pet');

//编辑宠物资料
Route::post(':version/controller/pet/PentInfo/edit_pet_info','version.controller.pet.PetInfo/edit_pet_info');
Route::rule(':version/controller/pet/PetInfo/edit_pet_info','api/:version.controller.pet.PetInfo/edit_pet_info');

//修改宠物资料
Route::post(':version/controller/pet/PentInfo/modify_pet_info','version.controller.pet.PetInfo/modify_pet_info');
Route::rule(':version/controller/pet/PetInfo/modify_pet_info','api/:version.controller.pet.PetInfo/modify_pet_info');

//查看宠物连续喂养多少天		continue_day
Route::post(':version/controller/pet/PentInfo/continue_day','version.controller.pet.PetInfo/continue_day');
Route::rule(':version/controller/pet/PetInfo/continue_day','api/:version.controller.pet.PetInfo/continue_day');

//宠物详情
Route::post(':version/controller/pet/PentInfo/get_petInfo','version.controller.pet.PetInfo/get_petInfo');
Route::rule(':version/controller/pet/PetInfo/get_petInfo','api/:version.controller.pet.PetInfo/get_petInfo');

//是否同意共享自己宠物
Route::post(':version/controller/pet/PentInfo/appoint_agree_or_not','version.controller.pet.PetInfo/appoint_agree_or_not');
Route::rule(':version/controller/pet/PetInfo/appoint_agree_or_not','api/:version.controller.pet.PetInfo/appoint_agree_or_not');

//返回是否同意共享宠物json
Route::post(':version/controller/pet/PentInfo/appoint_agree_or_not','version.controller.pet.PetInfo/appoint_agree_or_not');
Route::rule(':version/controller/pet/PetInfo/appoint_agree_or_not','api/:version.controller.pet.PetInfo/appoint_agree_or_not');


//2宠物寄养
//填写寄养表
Route::post(':version/controller/pet/Fosterage/fosterage_form','version.controller.pet.Fosterage/fosterage_form');
Route::rule(':version/controller/pet/Fosterage/fosterage_form','api/:version.controller.pet.Fosterage/fosterage_form');


//显示寄样表信息
Route::post(':version/controller/pet/Fosterage/show_fosterage_form','version.controller.pet.Fosterage/show_fosterage_form');
Route::rule(':version/controller/pet/Fosterage/show_fosterage_form','api/:version.controller.pet.Fosterage/show_fosterage_form');


//同意或不同意寄养
Route::post(':version/controller/pet/Fosterage/fosterage_agree_or_refuse','version.controller.pet.Fosterage/fosterage_agree_or_refuse');
Route::rule(':version/controller/pet/Fosterage/fosterage_agree_or_refuse','api/:version.controller.pet.Fosterage/fosterage_agree_or_refuse');


//用户是否同意接受寄养
Route::post(':version/controller/pet/Fosterage/fosterage_or_not','version.controller.pet.Fosterage/fosterage_or_not');
Route::rule(':version/controller/pet/Fosterage/fosterage_or_not','api/:version.controller.pet.Fosterage/fosterage_or_not');


//返回是否同意寄养json
Route::post(':version/controller/pet/Fosterage/judgement_fosterage','version.controller.pet.Fosterage/judgement_fosterage');
Route::rule(':version/controller/pet/Fosterage/judgement_fosterage','api/:version.controller.pet.Fosterage/judgement_fosterage');



//3.喂养和打赏
//喂养宠物
Route::post(':version/controller/pet/Feed/pet_hungry_level','version.controller.pet.Feed/pet_hungry_level');
Route::rule(':version/controller/pet/Feed/pet_hungry_level','api/:version.controller.pet.Feed/pet_hungry_level');

//宠物定时减去百分之四十饥饿值
Route::post(':version/controller/pet/Feed/less_hungry_level','version.controller.pet.Feed/less_hungry_level');
Route::rule(':version/controller/pet/Feed/less_hungry_level','api/:version.controller.pet.Feed/less_hungry_level');

//返回用户的宠粮数组
Route::post(':version/controller/pet/Feed/get_pet_food','version.controller.pet.Feed/get_pet_food');
Route::rule(':version/controller/pet/Feed/get_pet_food','api/:version.controller.pet.Feed/get_pet_food');


//打赏-打赏者部分
Route::post(':version/controller/pet/Feed/user_reward','version.controller.pet.Feed/user_reward');
Route::rule(':version/controller/pet/Feed/user_reward','api/:version.controller.pet.Feed/user_reward');


//打赏-被打赏更新宠粮
Route::post(':version/controller/pet/Feed/user_be_rewarded','version.controller.pet.Feed/user_be_rewarded');
Route::rule(':version/controller/pet/Feed/user_be_rewarded','api/:version.controller.pet.Feed/user_be_rewarded');


//4约宠部分
//判断宠粮是否足够约         judgement_pet_food
Route::post(':version/controller/pet/Appointment/judgement_pet_food','version.controller.pet.Appointment/judgement_pet_food');
Route::rule(':version/controller/pet/Appointment/judgement_pet_food','api/:version.controller.pet.Appointment/judgement_pet_food');


//约宠功能			appointment_pet
Route::post(':version/controller/pet/Appointment/appointment_pet','version.controller.pet.Appointment/appointment_pet');
Route::rule(':version/controller/pet/Appointment/appointment_pet','api/:version.controller.pet.Appointment/appointment_pet');


//接受或拒绝约宠及理由		agree_appointment_pet
Route::post(':version/controller/pet/Appointment/agree_appointment_pet','version.controller.pet.Appointment/agree_appointment_pet');
Route::rule(':version/controller/pet/Appointment/agree_appointment_pet','api/:version.controller.pet.Appointment/agree_appointment_pet');


//显示约宠信息			show_appointment
Route::post(':version/controller/pet/Appointment/show_appointment','version.controller.pet.Appointment/show_appointment');
Route::rule(':version/controller/pet/Appointment/show_appointment','api/:version.controller.pet.Appointment/show_appointment');

//是否打开约宠开关
Route::post(':version/controller/pet/Appointment/appointment_or_not','version.controller.pet.Appointment/appointment_or_not');
Route::rule(':version/controller/pet/Appointment/appointment_or_not','api/:version.controller.pet.Appointment/appointment_or_not');

//获取约宠状态
Route::post(':version/controller/pet/Appointment/get_appointment_status','version.controller.pet.Appointment/get_appointment_status');
Route::rule(':version/controller/pet/Appointment/get_appointment_status','api/:version.controller.pet.Appointment/get_appointment_status');



//消息部分 pushMessage
//
//显示消息（关注 判断是否互相关注 点赞  评论 回复 打赏  预约 预约回复 寄养 寄养回复）
Route::post(':version/controller/pushMessage/PushMessage/show_message','version.controller.pushMessage.PushMessage/show_message');
Route::rule(':version/controller/pushMessage/PushMessage/show_message','api/:version.controller.pushMessage.PushMessage/show_message');

//推送全部 push
Route::post(':version/controller/pushMessage/PushMessage/push','version.controller.pushMessage.PushMessage/push');
Route::rule(':version/controller/pushMessage/PushMessage/push','api/:version.controller.pushMessage.PushMessage/push');


//自定义消息		custom_message
Route::post(':version/controller/pushMessage/PushMessage/custom_message','version.controller.pushMessage.PushMessage/custom_message');
Route::rule(':version/controller/pushMessage/PushMessage/custom_message','api/:version.controller.pushMessage.PushMessage/custom_message');


//短信验证接口
//发送短信验证码
Route::post(':version/controller/SMS/SMS/send_sms','version.controller.SMS.SMS/send_sms');
Route::rule(':version/controller/SMS/SMS/send_sms','api/:version.controller.SMS.SMS/send_sms');
//验证短信验证码
Route::post(':version/controller/SMS/SMS/check_sms','version.controller.SMS.SMS/check_sms');
Route::rule(':version/controller/SMS/SMS/check_sms','api/:version.controller.SMS.SMS/check_sms');











//距离部分
//
//GPS返回周围$distance范围内的用户		GetRange
Route::post(':version/controller/distance/Distance/GetRange','version.controller.distance.Distance/GetRange');
Route::rule(':version/controller/distance/Distance/GetRange','api/:version.controller.distance.Distance/GetRange');

//显示附近的人			nearby_users
Route::post(':version/controller/distance/Distance/nearby_users','version.controller.distance.Distance/nearby_users');
Route::rule(':version/controller/distance/Distance/nearby_users','api/:version.controller.distance.Distance/nearby_users');


//判断距离			f_order
Route::post(':version/controller/distance/Distance/f_order','version.controller.distance.Distance/f_order');
Route::rule(':version/controller/distance/Distance/f_order','api/:version.controller.distance.Distance/f_order');


//插入用户			insert_map
Route::post(':version/controller/distance/Distance/insert_map','version.controller.distance.Distance/insert_map');
Route::rule(':version/controller/distance/Distance/insert_map','api/:version.controller.distance.Distance/insert_map');


//计算距离			calculate_distance
Route::post(':version/controller/distance/Distance/calculate_distance','version.controller.distance.Distance/calculate_distance');
Route::rule(':version/controller/distance/Distance/calculate_distance','api/:version.controller.distance.Distance/calculate_distance');

//广告图片			get_ads_img
Route::post(':version/controller/distance/Distance/get_ads_img','version.controller.distance.Distance/get_ads_img');
Route::rule(':version/controller/distance/Distance/get_ads_img','api/:version.controller.distance.Distance/get_ads_img');


//IM
Route::post(':version/controller/IM/IM/get_user_info','version.controller.IM.IM/get_user_info');
Route::rule(':version/controller/IM/IM/get_user_info','api/:version.controller.IM.IM/get_user_info');

Route::post(':version/controller/IM/IM/get_IM_Token','version.controller.IM.IM/get_IM_Token');
Route::rule(':version/controller/IM/IM/get_IM_Token','api/:version.controller.IM.IM/get_IM_Token');

Route::post(':version/controller/IM/IM/refresh_IM_info','version.controller.IM.IM/refresh_IM_info');
Route::rule(':version/controller/IM/IM/refresh_IM_info','api/:version.controller.IM.IM/refresh_IM_info');

Route::post(':version/controller/IM/IM/Get_Doctor_Status','version.controller.IM.IM/Get_Doctor_Status');
Route::rule(':version/controller/IM/IM/Get_Doctor_Status','api/:version.controller.IM.IM/Get_Doctor_Status');

Route::post(':version/controller/IM/IM/add_black_list','version.controller.IM.IM/add_black_list');
Route::rule(':version/controller/IM/IM/add_black_list','api/:version.controller.IM.IM/add_black_list');

Route::post(':version/controller/IM/IM/get_black_list','version.controller.IM.IM/get_black_list');
Route::rule(':version/controller/IM/IM/get_black_list','api/:version.controller.IM.IM/get_black_list');

Route::post(':version/controller/IM/IM/delete_black_list','version.controller.IM.IM/delete_black_list');
Route::rule(':version/controller/IM/IM/delete_black_list','api/:version.controller.IM.IM/delete_black_list');



//Doctor
Route::post(':version/controller/Doctor/Doctor/create_doctor_info','version.controller.Doctor.Doctor/create_doctor_info');
Route::rule(':version/controller/Doctor/Doctor/create_doctor_info','api/:version.controller.Doctor.Doctor/create_doctor_info');

Route::post(':version/controller/Doctor/Doctor/validate_doctor_name','version.controller.Doctor.Doctor/validate_doctor_name');
Route::rule(':version/controller/Doctor/Doctor/validate_doctor_name','api/:version.controller.Doctor.Doctor/validate_doctor_name');

Route::post(':version/controller/Doctor/Doctor/validate_doctor_phone','version.controller.Doctor.Doctor/validate_doctor_phone');
Route::rule(':version/controller/Doctor/Doctor/validate_doctor_phone','api/:version.controller.Doctor.Doctor/validate_doctor_phone');

Route::post(':version/controller/Doctor/Doctor/validate_doctor_access_token','version.controller.Doctor.Doctor/validate_doctor_access_token');
Route::rule(':version/controller/Doctor/Doctor/validate_doctor_access_token','api/:version.controller.Doctor.Doctor/validate_doctor_access_token');

Route::post(':version/controller/Doctor/Doctor/create_doctor_info','version.controller.Doctor.Doctor/create_doctor_info');
Route::rule(':version/controller/Doctor/Doctor/create_doctor_info','api/:version.controller.Doctor.Doctor/create_doctor_info');

Route::post(':version/controller/Doctor/Doctor/check_login','version.controller.Doctor.Doctor/check_login');
Route::rule(':version/controller/Doctor/Doctor/check_login','api/:version.controller.Doctor.Doctor/check_login');

Route::post(':version/controller/Doctor/Doctor/login','version.controller.Doctor.Doctor/login');
Route::rule(':version/controller/Doctor/Doctor/login','api/:version.controller.Doctor.Doctor/login');

Route::post(':version/controller/Doctor/Doctor/doctor_info_upload','version.controller.Doctor.Doctor/doctor_info_upload');
Route::rule(':version/controller/Doctor/Doctor/doctor_info_upload','api/:version.controller.Doctor.Doctor/doctor_info_upload');

Route::post(':version/controller/Doctor/Doctor/upload_certification_postive_img','version.controller.Doctor.Doctor/upload_certification_postive_img');
Route::rule(':version/controller/Doctor/Doctor/upload_certification_postive_img','api/:version.controller.Doctor.Doctor/upload_certification_postive_img');

Route::post(':version/controller/Doctor/Doctor/upload_certification_negative_img','version.controller.Doctor.Doctor/upload_certification_negative_img');
Route::rule(':version/controller/Doctor/Doctor/upload_certification_negative_img','api/:version.controller.Doctor.Doctor/upload_certification_negative_img');

Route::post(':version/controller/Doctor/Doctor/upload_identification_postive_img','version.controller.Doctor.Doctor/upload_identification_postive_img');
Route::rule(':version/controller/Doctor/Doctor/upload_identification_postive_img','api/:version.controller.Doctor.Doctor/upload_identification_postive_img');

Route::post(':version/controller/Doctor/Doctor/upload_identification_negative_img','version.controller.Doctor.Doctor/upload_identification_negative_img');
Route::rule(':version/controller/Doctor/Doctor/upload_identification_negative_img','api/:version.controller.Doctor.Doctor/upload_identification_negative_img');

Route::post(':version/controller/Doctor/Doctor/Approve_doctor','version.controller.Doctor.Doctor/Approve_doctor');
Route::rule(':version/controller/Doctor/Doctor/Approve_doctor','api/:version.controller.Doctor.Doctor/Approve_doctor');
//获取一个随机在线医生
Route::post(':version/controller/Doctor/Doctor/Get_Doctor_Status','version.controller.Doctor.Doctor/Get_Doctor_Status');
Route::rule(':version/controller/Doctor/Doctor/Get_Doctor_Status','api/:version.controller.Doctor.Doctor/Get_Doctor_Status');
//获取医生问诊总数目
Route::post(':version/controller/IM/IM/get_inquisition','version.controller.IM.IM/get_inquisition');
Route::rule(':version/controller/IM/IM/get_inquisition','api/:version.controller.IM.IM/get_inquisition');

//改变医生状态
Route::post(':version/controller/Doctor/Doctor/logchange','version.controller.Doctor.Doctor/logchange');
Route::rule(':version/controller/Doctor/Doctor/logchange','api/:version.controller.Doctor.Doctor/logchange');

//优惠券部分
//获取某用户的代金券数量
Route::post(':version/controller/Coupon/Coupon/get_coupon_count','version.controller.Coupon.Coupon/get_coupon_count');
Route::rule(':version/controller/Coupon/Coupon/get_coupon_count','api/:version.controller.Coupon.Coupon/get_coupon_count');
//使用代金券功能
Route::post(':version/controller/Coupon/Coupon/useCoupion','version.controller.Coupon.Coupon/useCoupion');
Route::rule(':version/controller/Coupon/Coupon/useCoupion','api/:version.controller.Coupon.Coupon/useCoupion');
//赠送优惠券方法
Route::post(':version/controller/Coupon/Coupon/handselCashCoupon','version.controller.Coupon.Coupon/handselCashCoupon');
Route::rule(':version/controller/Coupon/Coupon/handselCashCoupon','api/:version.controller.Coupon.Coupon/handselCashCoupon');





Route::resource(':version/user','api/:version.User'); 
Route::rule(':version/user/read','api/:version.User/read');
Route::post(':version/user/news','api/:version.User/news');
Route::post(':version/user/zan','api/:version.User/zan');
Route::post(':version/user/zhuanfa','api/:version.User/zhuanfa');
Route::post(':version/user/comment','api/:version.User/news_comment');
Route::post(':version/user/show_news','api/:version.User/show_news');
Route::post(':version/user/get_cmmt','api/:version.User/get_cmmt');
Route::post(':version/user/get_cmmt_answer','api/:version.User/get_cmmt_answer');
Route::post(':version/user/news_count','api/:version.User/news_count');
Route::post(':version/user/cmmt_count','api/:version.User/cmmt_count');
Route::post(':version/user/com_zan','api/:version.User/com_zan');
Route::post(':version/user/delete_news','api/:version.User/delete_news');
Route::post(':version/user/delete_cmmt','api/:version.User/delete_cmmt');
Route::post(':version/user/user_follow','api/:version.User/user_follow');
Route::post(':version/user/follow_or_not','api/:version.User/follow_or_not');
Route::post(':version/user/user_cancle_follow','api/:version.User/user_cancle_follow');
Route::post(':version/user/show_follows','api/:version.User/show_follows');
Route::post(':version/user/show_fans','api/:version.User/show_fans');
Route::post(':version/user/search','api/:version.User/search');
Route::post(':version/user/baidu_api','api/:version.User/BD09LLtoWGS84');
Route::post(':version/user/juli','api/:version.User/distanceBetween');
Route::post(':version/user/create_dynamic','api/:version.User/create_dynamic');
Route::post(':version/user/dynamic_upvote','api/:version.User/dynamic_upvote');
Route::post(':version/user/dynamic_cmmt','api/:version.User/dynamic_cmmt');
Route::post(':version/user/show_dynamic_cmmt','api/:version.User/show_dynamic_cmmt');
Route::post(':version/user/dynamic_cmmt_upvote','api/:version.User/dynamic_cmmt_upvote');
Route::post(':version/user/delete_user_dynamic','api/:version.User/delete_user_dynamic');
Route::post(':version/user/delete_dynamic_cmmt','api/:version.User/delete_dynamic_cmmt');
Route::post(':version/user/show_dynamic_img','api/:version.User/show_dynamic_img');
Route::post(':version/user/show_user_dynamic','api/:version.User/show_user_dynamic');
Route::post(':version/user/show_homepage','api/:version.User/show_homepage');
Route::post(':version/user/follow_user_dynamic','api/:version.User/follow_user_dynamic');
Route::post(':version/user/show_user_petinfo','api/:version.User/show_user_petinfo');
Route::post(':version/user/snapshot_posts','api/:version.User/snapshot_posts');
Route::post(':version/user/delete_snapshot_post','api/:version.User/delete_snapshot_post');
Route::post(':version/user/posts_cmmt','api/:version.User/posts_cmmt');
Route::post(':version/user/delete_snapshot_post_cmmt','api/:version.User/delete_snapshot_post_cmmt');
Route::post(':version/user/posts_upvote','api/:version.User/posts_upvote');
Route::post(':version/user/posts_forward','api/:version.User/posts_forward');
Route::post(':version/user/cmmt_upvote','api/:version.User/cmmt_upvote');
Route::post(':version/user/get_snapshot_img','api/:version.User/get_snapshot_img');
Route::post(':version/user/get_hot_post','api/:version.User/get_hot_post');
Route::post(':version/user/show_post_cmmt','api/:version.User/show_post_cmmt');
Route::post(':version/user/show_snapshot_post','api/:version.User/show_snapshot_post');
Route::post(':version/user/hospital','api/:version.User/hospital');
Route::post(':version/user/hospital','api/:version.User/hospital');
Route::post(':version/user/pet_hospital','api/:version.User/pet_hospital');
Route::post(':version/user/show_cat_cafes','api/:version.User/show_cat_cafes');
Route::post(':version/user/show_cat_cafe','api/:version.User/show_cat_cafe');
Route::post(':version/user/show_cat_img','api/:version.User/show_cat_img');
Route::post(':version/user/petDiary_notes','api/:version.User/petDiary_notes');
Route::post(':version/user/show_notes','api/:version.User/show_notes');
Route::post(':version/user/delete_petDiary_note','api/:version.User/delete_petDiary_note');
Route::post(':version/user/notes_upvote','api/:version.User/notes_upvote');
Route::post(':version/user/notes_cmmt','api/:version.User/notes_cmmt');
Route::post(':version/user/delete_petDiary_note_cmmt','api/:version.User/delete_petDiary_note_cmmt');
Route::post(':version/user/notes_cmmt_upvote','api/:version.User/notes_cmmt_upvote');
Route::post(':version/user/notes_collection','api/:version.User/notes_collection');
Route::post(':version/user/adopt_pet_update','api/:version.User/adopt_pet_update');
Route::post(':version/user/show_adopt_pet','api/:version.User/show_adopt_pet');
Route::post(':version/user/show_adopt_addr','api/:version.User/show_adopt_addr');
Route::post(':version/user/show_adopt_petinfo','api/:version.User/show_adopt_petinfo');
Route::post(':version/user/show_adopt_petdesc','api/:version.User/show_adopt_petdesc');
Route::post(':version/user/adoption_application','api/:version.User/adoption_application');
Route::post(':version/user/try_adoption_application','api/:version.User/try_adoption_application');
Route::post(':version/user/judgement_adopt_hungry_level','api/:version.User/judgement_adopt_hungry_level');
Route::post(':version/user/adopt_hungry_level','api/:version.User/adopt_hungry_level');
Route::post(':version/user/get_adopt_pet_food','api/:version.User/get_adopt_pet_food');
Route::post(':version/user/get_pet_food','api/:version.User/get_pet_food');
Route::post(':version/user/user_reward','api/:version.User/user_reward');
Route::post(':version/user/user_be_rewarded','api/:version.User/user_be_rewarded');
Route::post(':version/user/fosterage_form','api/:version.User/fosterage_form');
Route::post(':version/user/show_fosterage_form','api/:version.User/show_fosterage_form');
Route::post(':version/user/fosterage_agree_or_refuse','api/:version.User/fosterage_agree_or_refuse');
Route::post(':version/user/fosterage_or_not','api/:version.User/fosterage_or_not');
Route::post(':version/user/judgement_fosterage','api/:version.User/judgement_fosterage');
Route::post(':version/user/GetRange','api/:version.User/GetRange');
Route::post(':version/user/get_petInfo','api/:version.User/get_petInfo');
Route::post(':version/user/insert_map','api/:version.User/insert_map');
Route::post(':version/user/judgement_pet_food','api/:version.User/judgement_pet_food');
Route::post(':version/user/appointment_pet','api/:version.User/appointment_pet');
Route::post(':version/user/agree_appointment_pet','api/:version.User/agree_appointment_pet');
Route::post(':version/user/nearby_users','api/:version.User/nearby_users');
Route::post(':version/user/appoint_agree_or_not','api/:version.User/appoint_agree_or_not');
Route::post(':version/user/judgement_appoint','api/:version.User/judgement_appoint');
Route::post(':version/user/show_appointment','api/:version.User/show_appointment');
Route::post(':version/user/signature','api/:version.User/signature');
Route::post(':version/user/upload_video','api/:version.User/upload_video');
Route::post(':version/user/show_video','api/:version.User/show_video');
Route::post(':version/user/video_upvote','api/:version.User/video_upvote');
Route::post(':version/user/videos_cmmt','api/:version.User/videos_cmmt');
Route::post(':version/user/delete_videos_cmmt','api/:version.User/delete_videos_cmmt');
Route::post(':version/user/videos_cmmt_upvote','api/:version.User/videos_cmmt_upvote');
Route::post(':version/user/posts_forward','api/:version.User/posts_forward');
Route::post(':version/user/get_hot_video','api/:version.User/get_hot_video');
Route::post(':version/user/get_random_video','api/:version.User/get_random_video');
Route::post(':version/user/get_ads_img','api/:version.User/get_ads_img');
Route::post(':version/user/test_get_ads_img','api/:version.User/test_get_ads_img');
Route::post(':version/user/show_userinfo','api/:version.User/show_userinfo');
Route::post(':version/user/change_userinfo','api/:version.User/change_userinfo');
Route::post(':version/user/change_psw','api/:version.User/change_psw');
Route::post(':version/user/change_user_icon','api/:version.User/change_user_icon');
Route::post(':version/user/userInfo','api/:version.User/userInfo_upload');
Route::post(':version/user/edit_user_info','api/:version.User/edit_user_info');
Route::post(':version/user/petinfo_upload','api/:version.User/petinfo_upload');
Route::post(':version/user/pet_hungry_level','api/:version.User/pet_hungry_level');
Route::post(':version/user/less_hungry_level','api/:version.User/less_hungry_level');
Route::post(':version/user/judgement_user_type','api/:version.User/judgement_user_type');
Route::post(':version/user/permisstion_to_access','api/:version.User/permisstion_to_access');
Route::post(':version/user/petImages','api/:version.User/upload_petImg');
Route::post(':version/user/pet_manage','api/:version.User/pet_manage');
Route::post(':version/user/delete_pet','api/:version.User/delete_pet');
Route::post(':version/user/edit_pet_info','api/:version.User/edit_pet_info');
Route::post(':version/user/modify_pet_info','api/:version.User/modify_pet_info');
Route::post(':version/user/add_pet','api/:version.User/add_pet');
Route::post(':version/user/update_pet_status','api/:version.User/update_pet_status');
Route::post(':version/user/show_message','api/:version.User/show_message');
//Route::post(':version/user/show_message_test','api/:version.User/show_message');
Route::rule(':version/UserRegister/register','api/:version.UserRegister/register');
Route::rule(':version/UserRegister/login','api/:version.UserRegister/login');
Route::rule(':version/UserRegister/validate_token','api/:version.UserRegister/validate_token');
Route::rule(':version/UserRegister/login_handsel_pet_food','api/:version.UserRegister/login_handsel_pet_food');
Route::rule(':version/UserRegister/logout','api/:version.UserRegister/logout');
//zp做 医生端登录
Route::rule(':version/UserRegister/doctor_logout','api/:version.UserRegister/doctor_logout');
Route::rule(':version/UserRegister/send_Code','api/:version.UserRegister/send_Code');
Route::rule(':version/UserRegister/forget_psw','api/:version.UserRegister/forget_psw');
Route::rule(':version/UserRegister/validate_code','api/:version.UserRegister/validate_code');
Route::rule(':version/UserRegister/validate_user_name','api/:version.UserRegister/validate_user_name');
Route::rule(':version/UserRegister/validate_phone','api/:version.UserRegister/validate_phone');
Route::rule(':version/UserRegister/push','api/:version.UserRegister/push');
Route::rule(':version/UserRegister/custom_message','api/:version.UserRegister/custom_message');
Route::rule(':version/UserRegister/get_RegistrationId','api/:version.UserRegister/get_RegistrationId');
Route::rule(':version/fans/petinfo','api/:version.fans/show_user_petinfo');
Route::rule(':version/fans/get_ads_img','api/:version.fans/get_ads_img');
Route::rule(':version/token/wechat','api/:version.Token/wechat');
Route::rule(':version/token/mobile','api/:version.Token/mobile');
Route::rule(':version/token/login_username','api/:version.Token/login_username');
Route::miss('Error/index');
return [
    '__pattern__' => [
        'name' => '\w+',
    ],   
];